What you just saw is an example a new window when the page loads which then gets closed by a timer. You can specify the time that the window stays open. There are many different ways that you can open the window look at the examples below this 1 of 5 of them.
Reload Page To See Example Of This Script Above